package com.lzc.springcloud.msconsumeruser;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class MsConsumerUserApplication {
	
	/**
	 * 要使用 RestTemplate，启动时需注入spring的bean中
	 * @return
	 */
	@Bean
	public RestTemplate restTemplate() {
		return new RestTemplate();
	}
	
	public static void main(String[] args) {
		SpringApplication.run(MsConsumerUserApplication.class, args);
	}
}
